<template>
    <div class="join">
        <div class="header">
            <h1>赶快报名吧！12月与百余名金融精英一起相约三亚—中国大固收高端论坛“西沙话同业”重磅起航</h1>
            <div class="header-date">举办日期：<span>2017.12.14-2017.12.16</span></div>
            <div class="header-names">参会对象：<span>金融同业人员</span></div>
        </div>
        <div class="title">
            <span>基本信息</span>
        </div>
        <div>
            <van-cell-group>
                <van-field
                    v-model="username"
                    clearable
                    label="姓名"
                    placeholder="请输入姓名"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="telephone"
                    clearable
                    label="电话"
                    placeholder="请输入联系电话"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="telephone"
                    clearable
                    label="微信"
                    placeholder="请输入微信号"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="telephone"
                    clearable
                    label="邮箱"
                    placeholder="请输入邮箱"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="telephone"
                    clearable
                    label="公司"
                    placeholder="请输入您的公司名称"
                />
            </van-cell-group>
        </div>
        <div class="title">
            <span>参会人数</span>
        </div>
        <div>
            <van-cell-group>
                <van-cell title="参会人数">
                    <van-stepper v-model="value1" />
                </van-cell>
            </van-cell-group>
        </div>
        <div class="title">
            <span>选择房间类型和数量</span>
        </div>
        <div>
            <van-cell-group>
                <van-cell title="标准间">
                    <van-stepper v-model="value2" />
                </van-cell>
            </van-cell-group>
            <van-cell-group>
                <van-cell title="标准间">
                    <van-stepper v-model="value3" />
                </van-cell>
            </van-cell-group>
            <van-cell-group>
                <van-cell title="标准间">
                    <van-stepper v-model="value4" />
                </van-cell>
            </van-cell-group>
        </div>
        <div class="title">
            <span>是否需要发票</span>
        </div>
        <div>
            <van-cell-group>
                <van-field
                    v-model="name"
                    required
                    clearable
                    label="开票名称"
                    placeholder="如：深圳市前海大成金融服务有限公司"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="number"
                    required
                    clearable
                    label="税号"
                    placeholder="如：91440300093683823F"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="Bank"
                    clearable
                    label="开户银行"
                    placeholder="如：建行智慧支行"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="Banknumber"
                    clearable
                    label="开户账号"
                    placeholder="如：44201101368052501511"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="telephone"
                    clearable
                    label="电话"
                    placeholder="如：0755-82786009"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="address"
                    clearable
                    label="地址"
                    placeholder="如：深圳市福田区石厦北二街新天世纪商务中心A座2302室"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="name1"
                    clearable
                    label="收件人"
                    placeholder="请填写收件人姓名"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="phone"
                    clearable
                    label="电话"
                    placeholder="请填写收件人电话"
                />
            </van-cell-group>
            <van-cell-group>
                <van-field
                    v-model="address1"
                    clearable
                    label="地址"
                    placeholder="如：深圳市福田区石厦北二街新天世纪商务中心A座2302室"
                />
            </van-cell-group>
        </div>
        <div class="title">
            <span>补充信息</span>
        </div>
        <div class="footer">
            <span class="button__text">提交</span>
        </div>
    </div>
</template>

<style lang="less" scoped>
    @import '../../style/variable';
    .join{
        background: @color-bg-gray;
        .header {
            background-color: @color-white;
            // margin-bottom: 0.8rem;
            padding: 1.5rem 1.5rem;
            font-size: 1.5rem;
            line-height: 2.1rem;
            color: #333E48;
            text-align: justify;
            h1 {
                color: @color-black;
                font-size: 2.2rem;
                line-height: 2.9rem;
                margin-bottom: 1.1rem;
            }
            &-date, &-names {
                font-size: 1.4rem;
                line-height: 2rem;
                color: @color-black;
                margin-bottom: 0.7rem;
                span {
                    color: @color-block-red;
                    margin-left: 1.5rem;
                }
            }
        }
        .title{
            width: 100%;
            height: 4.3rem;
            background-color: #EFEFF4;
            span {
                color: #8f8f94;
                font-size: 1.4rem;
                line-height: 4.3rem;
            }
        }
        .explain {
            margin-bottom: 1rem;
        }
        .footer {
            padding: 0.8rem 1rem;
            background-color: @color-white;
            .button__text {
                padding: 1.2rem 0;
                display: block;
                background-color: #CE9940;
                text-align: center;
                font-size: 1.6rem;
                color: @color-white;
            }
        }
        
    }
</style>

<style lang="less">
    .join{
        .van-cell-group{
            .van-cell {
                padding: 1rem 1.5rem;
                // font-size: 1.6rem;
                // line-height: 2.1rem;
                .van-cell__title {
                    max-width: 10rem;
                    font-size: 1.6rem;
                    line-height: 2rem;
                    // flex: 2;
                }
                .van-cell__value {
                    font-size: 1.5rem;
                    // flex: 5;
                }
            }
        }
        .van-stepper {
            .van-stepper__minus, .van-stepper__plus {
                background-color: #fff;
                border-radius: 50%;
                width: 1.6rem;
                height: 1.6rem;
                border: 1px solid #CEA052;
            }
            .van-stepper__input {
                border: none;
                color: #000;
            }
            .van-stepper__minus::after, .van-stepper__minus::before, .van-stepper__plus::after, .van-stepper__plus::before {
                background-color: #CEA052;
            }
        }
    }
</style>

<script>
    import { Field, Cell, CellGroup, Stepper, button } from 'vant';
    export default {
        components: {
            [Field.name]: Field,
            [Cell.name]: Cell,
            [CellGroup.name]: CellGroup,
            [Stepper.name]: Stepper,
            [button.name]: button,
        },
        data(){
            return {
                tabActive: 0,
                username: '',
                telephone: '',
                value: ''
            }
        },
        created(){
            this.$store.commit('hideNav', true);
        }
    }
</script>